package com.example.mydemo.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mydemo.entity.Clock;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mydemo.entity.domain.EmployeeClockStatDTO;
import com.example.mydemo.model.ClockVO;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Mapper
public interface ClockMapper extends BaseMapper<Clock>{


    List<ClockVO> selectDakaCount();
    int batchInsert(@Param("list") List<Clock> list);
    IPage<EmployeeClockStatDTO> selectMonthByDepartmentId(
            Page<EmployeeClockStatDTO> page,
            @Param("departmentId") Long departmentId,
            @Param("monthStart") Date monthStart,
            @Param("monthEnd") Date monthEnd
    );

}
